package com.cw.demo.algorithm;

import java.util.Scanner;

/**
 *
 * @author chenw
 * @date 2021/11/23
 */
public class StrSplit {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            String str = scanner.next();
            int length = str.length();
            int total = length/8;
            if(total == 0){
                int subLength = 8-length;
                for(int i=0;i<subLength;i++){
                    str += "0";
                }
                System.out.println(str);
            }else{
                for(int i=0;i<total;i++){
                    System.out.println(str.substring(i*8,8*(i+1)));
                }
            }
            int avg = length%8;
            if(avg != 0){
                String subStr = str.substring(8*total);
                int subLength = 8-avg;
                for(int i=0;i<subLength;i++){
                    subStr += "0";
                }
                System.out.println(subStr);
            }
        }
    }
}
